<?php
/**
 *  Index de usuario Administrador.
 *
 *  @author H484X
 *  @since 2011-09-22
 */
class IndexAdminController extends Model3_Controller
{
    public function init()
    {
        $credentials = Model3_Auth::getCredentials();
        $aclDbDoctrine = new Model3_Acl_DbDoctrine($this->_request);
        $aclDbDoctrine->allowGroups(MN_Usuarios::TYPE_ADMIN_ADMIN);

        if(!$aclDbDoctrine->isAllowed($credentials['idUsuario'], $credentials['tipoUsuario']))
        {
            $this->redirect('NoAutorizados');
        }
        $this->view->credentials = $credentials;
        $this->view->setTemplate('Index');
    }

    protected function indexAction()
    {
    }
}
